const PROTOCOL = 'http'
const HOST = 'localhost'
const PORT = '3000'
const baseURL = `${PROTOCOL}://${HOST}:${PORT}`
import axios from "axios"
// 向后端传递id，返回该用户的所有购物车产品
export const get=(url,data={})=>{
    console.log(`${baseURL}${url}`);
    return axios({
        method: 'get',
        url: `${baseURL}${url}`,
        params: {
         ...data
        }
    })
   
}

